<?php
namespace Admin\Model;
use Think\Model\RelationModel;
class BannerModel extends  RelationModel{
	protected $_link = array(
        'role' => array( 
	 	'mapping_type'  => self::BELONGS_TO,   
        'class_name'    => 'banner_point',  
        'foreign_key'   => 'point_id',  
    		)
        );
    		    
}